﻿@model YHWE.Web.Models.documentType

@{
    ViewBag.Title = "Create";
}

<h2>产品类型管理</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>新建 产品类型</legend>

        <div class="editor-label">
            类型名
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name)
            @Html.ValidationMessageFor(model => model.name)
        </div>

        <div class="editor-label">
            样式
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.value) {content},{datetime},{id},{title}
            @Html.ValidationMessageFor(model => model.value)
        </div>

        <div class="editor-label">
            类型说明
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.exp)
            @Html.ValidationMessageFor(model => model.exp)
        </div>

        <div class="editor-label">
            有效
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.able)
            @Html.ValidationMessageFor(model => model.able)
        </div>

        <div class="editor-label">
            排序字段
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.rank)
            @Html.ValidationMessageFor(model => model.rank) 越大越靠前
        </div>

        <p>
            <input type="submit" value="创建" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("回列表", "Index")
</div>

